<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 4/11/17
 * Time: 9:59 AM
 */

namespace common\models;

/**
 * Class GuaranteeCompanyDotSite
 * @package common\models
 *
 * @property GuaranteeCompany $guaranteeCompany
 * @property CreditOrder[] $creditOrders
 */
class GuaranteeCompanyDotSite extends \common\models\base\GuaranteeCompanyDotSite
{
	/**
	 * @return \yii\db\ActiveQuery
	 */
	public function getGuaranteeCompany()
	{
		return $this->hasOne(GuaranteeCompany::className(), ['id'=>'guarantee_company_id']);
	}
	
	/**
	 * @return \yii\db\ActiveQuery
	 */
	public function getCreditOrders()
	{
		return $this->hasMany(CreditOrder::className(), ['guarantee_company_dot_site_id' => 'id']);
	}
}